package com.yearner.reviewplan.plan.commands;

import lombok.Getter;
import lombok.Setter;

/**
 * @author pengyg
 * @since 2019/10/18
 */
@Getter
@Setter
public class FinishPlanCommand {
    private String planId;
    private Integer point;
    public FinishPlanCommand() {

    }
    public static FinishPlanCommand create(Integer point, String planId) {
        FinishPlanCommand finishPlanCommand = new FinishPlanCommand();
        finishPlanCommand.planId = planId;
        finishPlanCommand.point = point == null ? 1 : point;
        return finishPlanCommand;
    }
}
